package com.spzx.cart.api.domain;

import ch.qos.logback.core.joran.spi.DefaultClass;
import com.spzx.common.core.web.controller.BaseController;
import com.spzx.common.core.web.domain.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;

/**
 * ClassName: CartInfo
 * Package: com.spzx.cart.api.domain
 * Description:
 *
 * @Author ycy
 * @Create 2024/8/20 21:23
 * @Version 1.0
 */
@Schema(description = "购物车信息")
@Data
public class CartInfo extends BaseEntity {
    private static final long serialVersionUID = 1L;

    @Schema(description = "用户id")
    private Long userId;

    @Schema(description = "skuid")
    private Long skuId;

    @Schema(description = "放入购物车时价格")
    private BigDecimal cartPrice;

    @Schema(description = "实时价格")
    private BigDecimal skuPrice;

    @Schema(description = "数量")
    private Integer skuNum;

    @Schema(description = "图片文件")
    private String thumbImg;

    @Schema(description = "sku名称 (冗余)")
    private String skuName;

    @Schema(description = "isChecked")
    private Integer isChecked = 1;
}
